package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import com.alibaba.fastjson.annotation.JSONField;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 古树名木养护技术表
 *
 * @author code-generate
 * @date 2022-02-27
 */
@Data
@DbTable(tableName = "t_gre_tree_curing_technology")
public class GreTreeCuringTechnology extends BaseEntity {
        /**
     * 技术名称
     */
    @DbTableField(columnName = "c_name", dbType = DbTypeEnum.VARCHAR)
    public String name ;

    /**
     * 大类ID
     */
    @DbTableField(columnName = "c_big_type_id", dbType = DbTypeEnum.VARCHAR)
    public String bigTypeId ;

    /**
     * 大类名称
     */
    @DbTableField(columnName = "c_big_type_name", dbType = DbTypeEnum.VARCHAR)
    public String bigTypeName ;

    /**
     * 中类ID
     */
    @DbTableField(columnName = "c_middle_type_id", dbType = DbTypeEnum.VARCHAR)
    public String middleTypeId ;

    /**
     * 中类名称
     */
    @DbTableField(columnName = "c_middle_type_name", dbType = DbTypeEnum.VARCHAR)
    public String middleTypeName ;

    /**
     * 小类ID
     */
    @DbTableField(columnName = "c_small_type_id", dbType = DbTypeEnum.VARCHAR)
    public String smallTypeId ;

    /**
     * 小类名称
     */
    @DbTableField(columnName = "c_small_type_name", dbType = DbTypeEnum.VARCHAR)
    public String smallTypeName ;

    /**
     * 养护内容
     */
    @DbTableField(columnName = "c_content", dbType = DbTypeEnum.VARCHAR)
    public String content ;

    /**
     * 审核时间
     */
    @DbTableField(columnName = "c_check_time", dbType = DbTypeEnum.TIMESTAMP)
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    public LocalDateTime checkTime ;

    /**
     * 审核结果（-1：停用；0：待审核；1：审核通过；2：审核失败）
     */
    @DbTableField(columnName = "c_check_result", dbType = DbTypeEnum.INTEGER)
    public Integer checkResult  = 0 ;

    /**
     * 审核意见
     */
    @DbTableField(columnName = "c_check_opinion", dbType = DbTypeEnum.VARCHAR)
    public String checkOpinion ;

    /**
     * 审核人ID
     */
    @DbTableField(columnName = "c_check_user_id", dbType = DbTypeEnum.VARCHAR)
    public String checkUserId ;

    /**
     * 审核人名称
     */
    @DbTableField(columnName = "c_check_user_name", dbType = DbTypeEnum.VARCHAR)
    public String checkUserName ;

    /**
     * 备注
     */
    @DbTableField(columnName = "c_remark", dbType = DbTypeEnum.VARCHAR)
    public String remark ;


}
